﻿using System;
using System.Configuration;
using System.Windows.Forms;

namespace SalesmanCommissionReport
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var controller = new Controller { LogFile = ConfigurationManager.AppSettings["FicheiroErros"] };
            if (!controller.IsConnectionValid())
                return;
            controller.ShowReport();
        }
    }
}
